﻿<%@ Page Language="C#" MasterPageFile="~/AdminMain.Master" AutoEventWireup="true"
    CodeBehind="Reports.aspx.cs" Inherits="BitlockerRecovery.AdminReports" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="AdminContentPlaceholder" runat="server">
    <asp:Menu ID="TopMenu" Width="168px" runat="server" Orientation="Horizontal" StaticEnableDefaultPopOutImage="False"
        OnMenuItemClick="TopMenu_MenuItemClick">
        <Items>
            <asp:MenuItem Text=" | Summary Report " Value="0"></asp:MenuItem>
            <asp:MenuItem Text=" | Detail Report" Value="1"></asp:MenuItem>
        </Items>
    </asp:Menu>
    <asp:MultiView runat="server" ID="ReportsMultiview" ActiveViewIndex="0">
        <asp:View ID="SummaryView" runat="server">
            <br />
            <br />
            <asp:Label CssClass="Header" ID="SummaryLabel" Text="Summary Report" runat="server"></asp:Label><br />
            <br />
            <table>
                <tr>
                    <td>
                        <label>
                            Start Date:</label>
                        <asp:TextBox ID="SummaryStartDate" runat="server" Width="90px"></asp:TextBox>
                    </td>
                    <td>
                        <label>
                            End Date:</label>
                        <asp:TextBox ID="SummaryEndDate" runat="server" Width="90px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Button ID="Button2" CssClass="SubmitButton" Text="Submit" runat="server" OnClick="SummaryReport_OnClick" />
                    </td>
                </tr>
            </table>
            <br />
            <br />
            <asp:Label CssClass="InfoLabel" ID="dtSummary" runat="server"></asp:Label>
            <asp:GridView ID="SummaryGrid" runat="server" EmptyDataText="No records found." AutoGenerateColumns="false">
                <Columns>
                    <asp:BoundField HeaderText="User Key Found" DataField="UserKeyFound" ReadOnly="true" />
                    <asp:BoundField HeaderText="User Key Not Found" DataField="UserKeyNotFound" ReadOnly="true" />
                    <asp:BoundField HeaderText="HST Key Found" DataField="HSTKeyFound" ReadOnly="true" />
                    <asp:BoundField HeaderText="HST Key Not Found" DataField="HSTKeyNotFound" ReadOnly="true" />
                    <asp:BoundField HeaderText="Admin Key Found" DataField="AdminKeyFound" ReadOnly="true" />
                    <asp:BoundField HeaderText="Admin Key Not Found" DataField="AdminKeyNotFound" ReadOnly="true" />
                    <asp:BoundField HeaderText="Total Searches" DataField="TotalKeys" ReadOnly="true" />
                    <asp:BoundField HeaderText="Total All Keys" DataField="TotalAllKeys" ReadOnly="true" />
                </Columns>
            </asp:GridView>
        </asp:View>
        <asp:View ID="DetailView" runat="server">
            <br />
            <br />
            <asp:Label CssClass="Header" ID="Label4" Text="Detail Report" runat="server"></asp:Label><br />
            <br />
            <table>
                <tr>
                    <td>
                        <label>
                            Start Date:</label>
                        <asp:TextBox ID="DetailStartDate" runat="server" Width="90px"></asp:TextBox>
                    </td>
                    <td>
                        <label>
                            End Date:</label>
                        <asp:TextBox ID="DetailEndDate" runat="server" Width="90px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:Button ID="Button1" CssClass="SubmitButton" Text="Submit" runat="server" OnClick="DetailReport_OnClick" />
                    </td>
                </tr>
            </table>
            <br />
            <br />
            <asp:Label CssClass="InfoLabel" ID="dtDetail" runat="server"></asp:Label>
            <asp:GridView ID="DetailGrid" runat="server" EmptyDataText="No records found." AutoGenerateColumns="false">
                <Columns>
                    <asp:BoundField HeaderText="TimeStamp" DataField="TimeStamp" ReadOnly="true" />
                    <asp:BoundField HeaderText="Alias(requestor)" DataField="RetrieverAlias" ReadOnly="true" />
                    <asp:BoundField HeaderText="Customer alias " DataField="KeySentToAlias" ReadOnly="true" />
                    <asp:BoundField HeaderText="Machine name " DataField="MachineName" ReadOnly="true" />
                    <asp:BoundField HeaderText="Search input parameter " DataField="InputSearchParamenter"
                        ReadOnly="true" />
                    <asp:BoundField HeaderText="User Type " DataField="SGRole" ReadOnly="true" />
                    <asp:BoundField HeaderText="KeyFound" DataField="KeyFound" ReadOnly="true" />
                </Columns>
            </asp:GridView>
        </asp:View>
    </asp:MultiView>
</asp:Content>
